import 'package:flutter/material.dart';

class Tag extends StatelessWidget {
  final String text;
  final Color bgColor;
  final double fontSize;

  Tag({
    Key key,
    @required this.text,
    @required this.bgColor,
    this.fontSize = 16,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ClipRRect(
      borderRadius: BorderRadius.circular(50),
      child: Container(
        padding: EdgeInsets.all(5),
        decoration: BoxDecoration(color: bgColor),
        child: Text(
          text,
          style: TextStyle(color: Colors.white, fontSize: fontSize),
        ),
      ),
    );
  }
}
